import Layout from "@/layout/Index.vue"
import { RouteRecordRaw } from "vue-router"

/** 不需要权限加载的 */
export const localroutes: RouteRecordRaw[] = [{
  path: "/login",
  name: "login",
  component: () => import("@/views/login/index.vue"),
}]

/**　需要权限加载的 */
export const asyncroutes: RouteRecordRaw[] = [{
  path: "/",
  component: Layout,
  redirect: "home",
  children: [
    {
      path: "home",
      name: "Home",
      component: () => import("@/views/home/index.vue"),
    }
  ]
},
{
  path: "/may",
  component: Layout,
  redirect: "mine",
  children: [
    {
      path: "mine",
      name: "Mine",
      component: () => import("@/views/mine/index.vue"),
    },
  ]
},
{
  path: "/os",
  component: Layout,
  redirect: "origin",
  children: [
    {
      path: "origin",
      name: "Origin",
      component: () => import("@/views/origin/index.vue"),
    },
  ]
}]
